package web_config

import (
	"chain_bridge_service/internal/pkg/core"
	"chain_bridge_service/internal/repository/mongodb"
	"chain_bridge_service/internal/repository/mongodb/web_config"
)

var _ Service = (*service)(nil)

type Service interface {
	i()
	Create(ctx core.Context, data *WebConfigData) error
	GetLatest(ctx core.Context) (web_config.WebConfig, error)
}

type service struct {
	db mongodb.Repo
}

func New(db mongodb.Repo) Service {
	return &service{
		db: db,
	}
}

func (s *service) i() {}
